// 导入vue
import Vue from 'vue'
import App from './App.vue'
// 导入路由对象
import router from './router'
// 导入vuex
import store from './store'

Vue.config.productionTip = false

// 1.导入vant组件
import "./utils/vant.js"

// 2. 导入amfe-flexible :作用设置1rem = 屏幕宽度 1/10
import 'amfe-flexible'

import moment from 'moment'
moment.locale('zh-cn')

Vue.filter('fromNow',function(value){
  return moment(value).fromNow()
})
 
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
